package com.bitejiuyeke.job_publish.controller.params;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @Author 比特就业课
 */
@Data
@Component
public class UserRegisterDTO {
    @NotBlank(message = "用户姓名不能为空")
    private String name;

    @NotBlank(message = "电话号码不能为空")
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]{9}$", message = "电话号码格式不正确")
    private String phoneNum;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "重复密码不能为空")
    private String repeatPassword;

    @NotBlank(message = "验证码不能为空")
    private String code;

}
